﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Fotobanka
{
    /// <summary>
    /// Trida reprezentujici tabulku Photo v databazi
    /// </summary>
    public class PhotoObject
    {
        private int id;
        private int gallery_id;
        private string content_type;
        private string file_name;
        private int width;
        private int height;
        private byte lock_version;
        private DateTime created_on;
        private DateTime updated_on;
        private string title;

        public int Id
        {
            get {
                return id;
            }
            set {
                id = value;
            }
        }
    
        public int GalleryId
        {
            get {
                return gallery_id;
            }
            set {
                gallery_id = value;
            }
        }

        public string ContentType
        {
            get {
                return content_type;
            }
            set {
                content_type = value;
            }
        }
    
        public string FileName
        {
            get {
                return file_name;
            }
            set {
                file_name = value;
            }
        }

        public int Width
        {
            get {
                return width;
            }
            set {
                width = value;
            }
        }

        public int Height
        {
            get {
                return height;
            }
            set {
                height = value;
            }
        }

        public byte Lock
        {
            get
            {
                return lock_version;
            }
            set
            {
                lock_version = value;
            }
        }

        public DateTime CreatedOn
        {
            get
            {
                return created_on;
            }
            set
            {
                created_on = value;
            }
        }

        public DateTime UpdatedOn
        {
            get
            {
                return updated_on;
            }
            set
            {
                updated_on = value;
            }
        }

        public string Title
        {
            get {
                return title;
            }
            set {
                title = value;
            }
        }

    }
}
